package org.example.dao.impl;

import org.example.dao.UserDao;
import org.example.pojo.User;

public class UserDaoImpl implements UserDao {

	//查询用户信息
	@Override
	public User getUserInfoDao(String uname, String pwd) {
		User u= new User(1,uname,pwd,"男",12,"2021-09-12");
		return u;
	}

	//用户注册
	@Override
	public int regUserInfoDao(String uname, String pwd, String sex, int age,
			String birthday) {
		
		// 创建插入sql语句
		// 插入一条数据成功

		return 1;
	}

}
